package com.ynet.middleground.oss.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ynet.middleground.oss.entity.OauthUserRole;

/**
 * <p>
 * oauth用户权限表 Mapper 接口
 * </p>
 *
 * @author Suremotoo
 * @since 2019-05-13
 */
@Mapper
public interface OauthUserRoleMapper extends BaseMapper<OauthUserRole> {

    /**
     * 根据用户ID 查询对应角色权限
     *
     * @param userId 用户id
     * @return
     */
    List<Map<String, Object>> listRolesByUserId(@Param("userId") Integer userId);
}
